package com.aims.server.common;

/**
 * 错误码枚举
 */
public enum ErrorCode {
    /**
     * 40001 参数缺失或超长
     */
    PARAM_INVALID(40001, "参数缺失或超长"),

    /**
     * 40002 operationType非法(必须是"新增/注销")
     */
    OPERATION_TYPE_INVALID(40002, "业务类型非法,仅允许:新增、注销"),

    /**
     * 40401 formId不存在
     */
    FORM_NOT_FOUND(40401, "表单不存在");

    private final Integer code;
    private final String message;

    ErrorCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}